<?php
if ( isset($_SESSION['auth'] ))
{
	include 'connect.php';

	$sql = "SELECT user_id FROM $table_name 
		  WHERE user_name='$_SESSION[logname]'";
	$result = mysql_query($sql,$db);
	$infos = mysql_fetch_array($result); 

 
	$sql = "SELECT * FROM $table_exppro 
	  WHERE user_id='$infos[user_id]'";
	$result = mysql_query($sql);
	while($item = mysql_fetch_array($result))
	{
	?>
	<div class="subcolumns exp pro vevent vcard">

		<div class="c62l bottom-10">
			<div class="subcl">
				<span class="title"><?php echo $item['titre']; ?> - </span>
				<span class="org"><?php echo $item['employeur']; ?></span>, 
				<span class="location"><?php echo $item['location']; ?></span>
			</div>
		</div>

		<div class="c38r bottom-10">
			<div class="subcr text-right">
				<abbr title="dtstart" class="dtstart"><?php echo disDate($item['dtstart'],$int="-"); ?></abbr> - 
				<abbr title="dtend" class="dtend"><?php echo disDate($item['dtend'],$int="-"); ?></abbr>
			</div>
		</div>
		<div class="summary summ"><?php echo $item['summary']; ?></div>
	
	</div>
	
	


<?php } ?>

<?php }
	else { include 'erreur.php'; } 
?>